/*
 * XML Type:  Adjustment
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.Adjustment
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML Adjustment(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class AdjustmentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.Adjustment
{
    
    public AdjustmentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ADJNO$0 = 
        new javax.xml.namespace.QName("", "ADJNO");
    private static final javax.xml.namespace.QName ADJDESC$2 = 
        new javax.xml.namespace.QName("", "ADJDESC");
    private static final javax.xml.namespace.QName ADJAMT$4 = 
        new javax.xml.namespace.QName("", "ADJAMT");
    private static final javax.xml.namespace.QName ADJDATE$6 = 
        new javax.xml.namespace.QName("", "ADJDATE");
    
    
    /**
     * Gets the "ADJNO" element
     */
    public java.lang.String getADJNO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADJNO$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "ADJNO" element
     */
    public net.ofx.types.x2003.x04.InvestmentNumberType xgetADJNO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentNumberType target = null;
            target = (net.ofx.types.x2003.x04.InvestmentNumberType)get_store().find_element_user(ADJNO$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "ADJNO" element
     */
    public boolean isSetADJNO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ADJNO$0) != 0;
        }
    }
    
    /**
     * Sets the "ADJNO" element
     */
    public void setADJNO(java.lang.String adjno)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADJNO$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADJNO$0);
            }
            target.setStringValue(adjno);
        }
    }
    
    /**
     * Sets (as xml) the "ADJNO" element
     */
    public void xsetADJNO(net.ofx.types.x2003.x04.InvestmentNumberType adjno)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentNumberType target = null;
            target = (net.ofx.types.x2003.x04.InvestmentNumberType)get_store().find_element_user(ADJNO$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InvestmentNumberType)get_store().add_element_user(ADJNO$0);
            }
            target.set(adjno);
        }
    }
    
    /**
     * Unsets the "ADJNO" element
     */
    public void unsetADJNO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ADJNO$0, 0);
        }
    }
    
    /**
     * Gets the "ADJDESC" element
     */
    public java.lang.String getADJDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADJDESC$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "ADJDESC" element
     */
    public net.ofx.types.x2003.x04.ShortMessageType xgetADJDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ShortMessageType target = null;
            target = (net.ofx.types.x2003.x04.ShortMessageType)get_store().find_element_user(ADJDESC$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "ADJDESC" element
     */
    public void setADJDESC(java.lang.String adjdesc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADJDESC$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADJDESC$2);
            }
            target.setStringValue(adjdesc);
        }
    }
    
    /**
     * Sets (as xml) the "ADJDESC" element
     */
    public void xsetADJDESC(net.ofx.types.x2003.x04.ShortMessageType adjdesc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ShortMessageType target = null;
            target = (net.ofx.types.x2003.x04.ShortMessageType)get_store().find_element_user(ADJDESC$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ShortMessageType)get_store().add_element_user(ADJDESC$2);
            }
            target.set(adjdesc);
        }
    }
    
    /**
     * Gets the "ADJAMT" element
     */
    public java.lang.String getADJAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADJAMT$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "ADJAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetADJAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(ADJAMT$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "ADJAMT" element
     */
    public void setADJAMT(java.lang.String adjamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADJAMT$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADJAMT$4);
            }
            target.setStringValue(adjamt);
        }
    }
    
    /**
     * Sets (as xml) the "ADJAMT" element
     */
    public void xsetADJAMT(net.ofx.types.x2003.x04.AmountType adjamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(ADJAMT$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(ADJAMT$4);
            }
            target.set(adjamt);
        }
    }
    
    /**
     * Gets the "ADJDATE" element
     */
    public java.lang.String getADJDATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADJDATE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "ADJDATE" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetADJDATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(ADJDATE$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "ADJDATE" element
     */
    public boolean isSetADJDATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ADJDATE$6) != 0;
        }
    }
    
    /**
     * Sets the "ADJDATE" element
     */
    public void setADJDATE(java.lang.String adjdate)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADJDATE$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADJDATE$6);
            }
            target.setStringValue(adjdate);
        }
    }
    
    /**
     * Sets (as xml) the "ADJDATE" element
     */
    public void xsetADJDATE(net.ofx.types.x2003.x04.DateTimeType adjdate)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(ADJDATE$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(ADJDATE$6);
            }
            target.set(adjdate);
        }
    }
    
    /**
     * Unsets the "ADJDATE" element
     */
    public void unsetADJDATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ADJDATE$6, 0);
        }
    }
}
